<!DOCTYPE html>
<html lang="en">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link type="text/css" href="http://localhost:10000/css/chuku.css" rel="stylesheet">
    <script type="text/javascript" src="http://localhost:10000/js/jquery-1.11.3.min.js"></script>
    <script>
        function getpage(pageRow){
            var pageNum = $("#pageNum3").val();
            var start = $("#start").val();
            var end = $("#end").val();
            var billID = $("#billID").val();
            var custName = $("#custName").val();
            window.location = "mingxichaxun.do?pageNum=" + pageNum +"&pageRows="+pageRow+"&start="+start+"&end="+end
                +"&billID="+billID+"&custName="+custName;
        }
        function lastpage(pageNum) {
            var pageRows = $("#pageRows3").val();
            var start = $("#start").val();
            var end = $("#end").val();
            var billID = $("#billID").val();
            var custName = $("#custName").val();
            window.location = "mingxichaxun.do?pageNum=" + pageNum +"&pageRows="+pageRows+"&start="+start+"&end="+end
                +"&billID="+billID+"&custName="+custName;

        }
    </script>
</head>
<body>
出库管理>>出库单明细确认
<hr>
<form action="http://localhost:10000/chuku/mingxichaxun.do">
    <div class="table" style="color: #505ca0;">
        <table border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="width: 10%" ;>出库时间</td>
                <td style="width: 80%" ;>
                    <input type="date" id="start" name="start" th:value="${session.start2}">/<input type="date" id="end" name="end" th:value="${session.end2}">
                </td>
            </tr>
            <tr>
                <td style="width: 10%" ;>出库单号</td>
                <td>
                    <input type="text" id="billID" name="billID" th:value="${session.billID2}">
                </td>
            </tr>
            <tr>
                <td style="width: 10%" ;>货主名</td>
                <td>
                    <input type="text" id="custName" name="custName" th:value="${session.custName2}">
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" id="" name="" value="查询" /></td>
            </tr>
        </table>
    </div>
</form>
<div class="table1" style="color: #53a058;">
    <table border="0" cellspacing="0" cellpadding="0" style="background-color: #aedfb6;">
        <tr>
            <td>明细号</td>
            <td>货主</td>
            <td>托盘号</td>
            <td>货物名称</td>
            <td>验货员</td>
            <td>仓管员</td>
            <td>入库数量</td>
        </tr>
        <tbody   th:if="${session.pageInfo3 !=null }" style="background-color: white;color: #303030;border: 1px solid #303030">
        <tr th:each="every:${session.pageInfo3.getList()} ">
            <td th:text="${every.get('detailsID')} == null?'null':${every.detailsID}"></td>
            <!--<td th:text="${every.detailsID}"></td>-->
            <td th:text="${every.get('custName')} == null?'null':${every.custName}"></td>
            <td th:text="${every.get('trayID')} == null?'null':${every.trayID}"></td>
            <td th:text="${every.get('detailsGoodsName')} == null?'null':${every.detailsGoodsName}"></td>
            <td th:text="${every.get('detailsAffirmant')} == null?'null':${every.detailsAffirmant}"></td>
            <td th:text="${every.get('detailsConservator')} == null?'null':${every.detailsConservator}"></td>
            <td th:text="${every.get('detailsGoodsNum')} == null?'null':${every.detailsGoodsNum}"></td>
        </tr>
        <tr>
            <button th:value="${session.pageInfo3.getPageNum()>1?session.pageInfo3.getPageNum()-1:session.pageInfo3.getPageNum()}" onclick="lastpage(this.value)">上一页</button>
            <select name="" id="pageRows" onchange="getpage(this.value)">
                <option value="5" th:selected="${session.pageRows3 == 5}">5</option>
                <option value="10" th:selected="${session.pageRows3 == 10}">10</option>
                <option value="15" th:selected="${session.pageRows3 == 15}">15</option>
            </select>
            <button th:value="${session.pageInfo3.getPageNum()<session.pageInfo3.getSize()?session.pageInfo3.getPageNum()+1:session.pageInfo3.getPageNum()}" onclick="lastpage(this.value)">下一页</button>
        </tr>
        </tbody>
    </table>
    <input type="hidden" id="pageNum3" th:value="${session.pageNum3}">
    <input type="hidden" id="pageRows3" th:value="${session.pageRows3}">
</div>
</body>
</html>